package cn.hdu.liang.core.service.product;

import cn.hdu.liang.core.bean.product.Img;
import cn.hdu.liang.core.query.product.ImgQuery;
import cn.itcast.common.page.Pagination;

import java.util.List;

public interface ImgService {

    public Integer addImg(Img img);

    public Img getImgByKey(Integer id);

    public List<Img> getImgsByKeys(List<Integer> idList);

    public Integer deleteByKey(Integer id);

    public Integer deleteByKeys(List<Integer> idList);

    public Integer updateImgByKey(Img img);

    public Pagination getImgListWithPage(ImgQuery imgQuery);

    public List<Img> getImgList(ImgQuery imgQuery);
}
